/**
 * utils/md5
 */

const crypto = require('crypto');

module.exports = function(str) {
    let md5 = crypto.createHash('md5');

    md5.update('' + str, 'utf8');

    return md5.digest('hex');
};
